package xkp.lesson.mapper;

import org.apache.ibatis.annotations.Param;
import xkp.lesson.entity.UserInfo;
import xkp.lesson.entity.UsersQuery;

import java.util.List;
import java.util.Map;

public interface UserInfoMapper {
    public List<UserInfo> selectAll();
    public int insert(UserInfo userInfo);
    public UserInfo selectById(int id);
    public int deleteById(int id);
    public int update(UserInfo userInfo);
    public int update2(UserInfo userInfo);
    public UserInfo login(@Param("userName") String userName, @Param("userPwd") String userPwd);
    public List<UserInfo> selectLikeNamePage(UsersQuery usersQuery);
    public List<UserInfo> selectByInfo(UserInfo userInfo);

    public int batchInsert(List<UserInfo> userInfos);
}
